#
# Feb 8, 2009
#

CC = gcc
LOCALHOST = localhost
REMOTEHOST = ec2-174-129-190-38.compute-1.amazonaws.com

all:
	${CC} -o netbounce-server netbounce-server.c ${LIBS}
	${CC} -o netbounce-client netbounce-client.c ${LIBS}

test:
	@echo For a local test, for run test-local-s in one window, then test-local-c in another.
	@echo For a netbounce, run nb-s in the far computer, then nb-c in the near computer.

test-local-c:
	./netbounce-server

test-local-s:
	./netbounce-client ${LOCALHOST} hello_world


nb-s:
	@echo Ready to bounce!
	./netbounce-server

nb-c:
	./netbounce-client ${REMOTEHOST} "The amazing net bounce!"

submit:
	svn commit -m "submitted for grade"

clean:
	-rm netbounce-client netbounce-server
